var $ = getApp(), methods = require("../methods.js");
Page(Object.assign({}, methods, {
	data: {
		guizeshow:false
	},
	_onLoad:function(){
		var that = this
		$.get('sign/index', {  }, function (res) {
      that.setData(res)
    })
	},
	signin:function(){
		var that = this
		$.post('sign/signin',{},function(data){
			if(data.status==1){
				$.success('+'+data.scoreadd+(that.data.textset['积分'] || '积分'));
				that._onLoad();
			}else{
				$.alert(data.msg);
			}
		})	
	}
}))